package cn.geminis.warehouse.service.inventory.entity.repository;

import jakarta.transaction.Transactional;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

public interface ContainerInContainerRepository {

    @Modifying
    @Transactional(rollbackOn = Exception.class)
    @Query("delete from ContainerInContainer o where o.child.id = ?1")
    int unPackageAllByChildId(String childId);

}
